<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<div id="personalInquiryGrid"></div>
<script>
 var personal={
		 init : function() {
				personal.personalInquiryGrid = $('#personalInquiryGrid');
				personal.personalInquiryGrid.datagrid({
				    url: '<%=request.getContextPath()%>/StuServlet?command=listPersonal',
				    fitColumns: true,
				    striped: true,
				    rownumbers: true,
				    pagination: true,
				    pageSize: 10,
				    pageList: [10, 20, 30, 40, 50],
				    pageNumber: 1,
				    columns:[[
						{field:'id', width:100, checkbox: true},
						{field:'code', title:' 账号', width:100, align:'center'},
						{field:'username', title:'姓名', width:100, align:'center'},
						{field:'sex', title:'性别', width:100, align:'center'},
						{field:'phone', title:'电话', width:100, align:'center'},
						{field:'email', title:'邮箱', width:100, align:'center'},
						{field:'create_time', title:'创建时间', width:100, align:'center'},
						{field:'rolename', title:'所属角色', width:100, align:'center'},
						{field:'classname', title:'所属班级', width:100, align:'center'},
				    ]],
				});
		},
 }
 
 $(function(){
	 personal.init();
 })
</script>